go/types.Array.len (field)
31 uses
go/types (current package)
array.go#L12: len int64
array.go#L18: func NewArray(elem Type, len int64) *Array { return &Array{len: len, elem: elem} }
array.go#L22: func (a *Array) Len() int64 { return a.len }
builtins.go#L171: if t.len >= 0 {
builtins.go#L172: val = constant.MakeInt64(t.len)
gcsizes.go#L115: n := t.len
index.go#L70: length = typ.len
index.go#L79: length = typ.len
index.go#L122: l = t.len
index.go#L129: l = t.len
index.go#L250: length = u.len
index.go#L261: length = u.len
literals.go#L124: typ = &Array{len: -1, elem: check.varType(atyp.Elt)}
literals.go#L239: n := check.indexedElts(e.Elts, utyp.elem, utyp.len)
literals.go#L248: if utyp.len < 0 {
literals.go#L249: utyp.len = n
predicates.go#L281: return (x.len < 0 || y.len < 0 || x.len == y.len) && c.identical(x.elem, y.elem, p)
sizes.go#L181: n := t.len
subst.go#L126: return &Array{len: t.len, elem: elem}
typestring.go#L140: w.string(strconv.FormatInt(t.len, 10))
typexpr.go#L314: typ.len = -1
typexpr.go#L316: typ.len = check.arrayLength(e.Len)
typexpr.go#L319: if typ.len >= 0 {
unify.go#L595: return (x.len < 0 || y.len < 0 || x.len == y.len) && u.nify(x.elem, y.elem, emode, p)